package com.ijiuchuang.jc_localization.view.adapter;

import android.content.Context;

import com.ijiuchuang.jc_localization.R;
import com.ijiuchuang.jc_localization.bean.bmob.Product;
import com.ijiuchuang.jc_localization.bean.bmob.Solution;
import com.ijiuchuang.jc_localization.tools.adapter.ViewHolder;
import com.ijiuchuang.jc_localization.tools.adapter.recyclerview.CommonAdapter;

import java.util.List;

/**
 * Created by Veev on 2016/6/13
 *
 * @link 384506557@qq.com
 */
public class SolutionListRecyclerAdapter extends CommonAdapter<Solution> {

    public SolutionListRecyclerAdapter(Context context, int layoutId, List<Solution> datas) {
        super(context, layoutId, datas);
    }

    @Override
    public void convert(final ViewHolder holder, final Solution solution) {
        holder.setText(R.id.recycler_item_product_list_text_name, solution.getName());
        holder.setImageByUrl(R.id.recycler_item_product_list_image, solution.getPic().getUrl());
    }
}
